class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.column "title", :string
      t.column "body", :text
      t.column "comments_count", :integer, :default => 0
      t.column "created_at", :datetime
    end
  end

  def self.down
    drop_table :articles
  end
end
